import java.util.Scanner;

public class Test8 {
    public static int max(int a, int b) {
        return a > b ? a : b;
    }

    public static double max(double a, double b, double c) {
        double temp = (a > b ? a : b);
        return temp > c ? temp : c;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int m = in.nextInt();
        int n = in.nextInt();
        System.out.println(m + "和" + n + "的最大值是" + max(m, n));
        double a = in.nextDouble();
        double b = in.nextDouble();
        double c = in.nextDouble();
        System.out.println(a + "," + b + "," + c + "最大值是" + max(a, b, c));
    }
}
